<template>
  <div class="body">
    <div class="header"></div>
    <div class="tablebar">
      <div class="logo"></div>
      <div class="title"></div>
      <div class="barList">
        <div class="index" id="bar" @click="index">首页</div>
        <div class="about" id="bar" @click="about">关于创客</div>
        <div class="RDcenter" id="bar" @click="RDcenter">研发中心</div>
        <div class="RDteam" id="bar" @click="RDteam">研发团队</div>
        <div class="Aicenter" id="bar" @click="Aicenter">AI能力中台</div>
        <div class="joinUs" id="bar" @click="joinUs">加入创客</div>
      </div>
    </div>
    <div class="main">
      <router-view></router-view>
    </div>
    <div class="bottom">
      <span>创图永探青云志，客里勤磨赤子心。</span>
    </div>
  </div>
</template>

<script>
export default {
  // 在这里添加你的组件逻辑
  data() {
    return {

    }
  },
  methods: {
    // 添加页面跳转逻辑
    index() {

    },
    about() {

    },
    RDcenter() {
      this.$router.push('/portalIndex/produce')
    },
    RDteam() {

    },
    Aicenter() {

    },
    joinUs() {

    }
  }
}
</script>

<style>
/* body, html {
  height: 100%;
  margin: 0;
} */
body {
  width: 100%;
  height: 100%;
  background-image: url(../../assets/images/bac.jpg);
  background-size: cover;
  /* 图片正好填充 */
  background-repeat: no-repeat;
  /* 防止图片重复 */
  background-position: center;
  /* 图片居中 */
  background-attachment: fixed;
}

.body {
  display: flex;
  flex-direction: column;
  /* 使子元素垂直排列 */
  /* background-color: rgb(255, 255, 255); */
  width: 100%;
  height: 100%;
  /* background-image: url(../../assets/images/bac.jpg); */
  background-size: cover;
  /* 图片正好填充 */
  background-repeat: no-repeat;
  /* 防止图片重复 */
  background-position: center;
  /* 图片居中 */
}

.header {
  background-color: #94070A;
  width: 100%;
  height: 3%;
}

.tablebar {
  display: flex;
  min-height: 10%;
  height: 10%;
  width: 95%;
  margin: 0 auto;
}

.main {
  flex-grow: 1;
  width: 95%;
  height: auto;
  /* 跳转后修改样式，或者直接修改为auto，再修改 */
  background-color: rgba(255, 255, 255, 0.5);
  margin: 0 auto;
  /* 确保子元素可以覆盖整个区域 */
}
.logo {
  background-image: url(../../assets/images/cksys.png);
  width: 8%;
  height: 96%;
  background-size: cover;
  /* 图片正好填充 */
  background-repeat: no-repeat;
  /* 防止图片重复 */
  background-position: center;
  /* 图片居中 */
}

.title {
  width: 20%;
  height: 100%;
  background-color: #ffffff;
}

.barList {
  display: flex;
  justify-content: space-between;
  /* 子元素均匀分布 */
  width: 60%;
  height: 100%;

  margin-left: auto;
}

#bar {
  height: 100%;
  width: 15%;
  text-align: center;
  /* 文字水平居中 */
  display: flex;
  align-items: center;
  /* 文字垂直居中 */
  justify-content: center;
  /* 文字水平居中 */
  padding-top: 0;
  /* 移除原来的 padding-top */
  font-weight: 600;
}

#bar:hover {
  background-color: rgba(255, 255, 255, 0.5);
  /* 白色透明背景 */
}

.bottom {
  width: 95%;
  height: 3%;
  margin: auto auto;
}
/* .logo,.barList,.title{
  height: 260%;
} */
</style>